<?php

class Router extends MX_Controller {

	function __construct()
	{
		parent::__construct();
	}

	function index()
	{
		redirect($this->referrer);
	}
	
	function external($prefix = '', $uri = '')
	{
		$this->common->check_permission($prefix);
		$data = array(
			'application' => $this->common->get_application_description($prefix),
			'uri' => decode_from_uri($uri),
		);	// data yang akan dipassing ke view
		$this->load->view('layout/external', $data);
	}
}
